import SvgIcon from "@/components/SvgIcon/index.vue";
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
interface IconMap {
  [key: string]: any; // 你可以根据实际情况替换 `any`
}
const allGlobalComponent: IconMap = {
  SvgIcon
};
export default {
  install(app: any) {
    Object.keys(allGlobalComponent).map((key) => {
      app.component(key, allGlobalComponent[key]);
    });
    //将element-plus提供图标注册为全局组件
    for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
      app.component(key, component);
    }
  }
};
